<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModifyVA.aspx.cs" Inherits="admin_ModifyVA"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    
     <link href="../styles/admin.css" rel="stylesheet" type="text/css" />
   <link href="../styles/jquery_themes/redmond/jquery-ui-1.8.5.custom.css" rel="stylesheet"
        type="text/css" />

    <script src="../javascripts/master.js" type="text/javascript"></script>


    <script src="../javascripts/jquery-1.4.3.min.js" type="text/javascript"></script>

    <script src="../javascripts/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $(".datepicker").datepicker({ dateFormat: 'dd/mm/yy' });
        });  
    </script>

    <script type="text/javascript">
        function showSites(str) {
            if (str == "") {
                document.getElementById("txtHint").innerHTML = "";
                return;
            }
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange = function() {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    document.getElementById("client_id").innerHTML = str;
                }
            }
            SitesObjectDataSource.SelectParameters["client_id"].DefaultValue = str;
            xmlhttp.open("GET", "Create_Repport.aspx?client_id=" + str, true);
            xmlhttp.send();
        }
    </script>

</head>

<body>
   
<div>
<asp:Label ID="comp_label" runat="server">

</asp:Label>
</div>
    <form id="form1" runat="server">
     <div>
     <asp:HyperLink ID="Return_lk" runat =server NavigateUrl="~/admin/Home.aspx" Target=_parent >Return</asp:HyperLink>   
    
        <asp:GridView ID="GridViewVA" runat="server" OnRowDeleting="GridViewVA_OnRowDeleting"  OnRowCancelingEdit="GridViewVA_OnRowCancelingEdit" OnRowCreated="GridViewVA_OnRowCreated" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" OnRowEditing="GridViewVA_OnRowEditing" OnRowUpdating="GridViewVA_OnRowUpdating" PageSize="10" OnPageIndexChanging="PageIndexChanging"
            >
            <Columns>
                          <asp:TemplateField HeaderText="Severity">
                            <EditItemTemplate>
                                <asp:DropDownList runat="server" ID="severity_dropdownlist" DataValueField='<%#Eval("status_id") %>'>
                                    <asp:ListItem Text="Normal" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="Abnormal" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="Moderate" Value="3"></asp:ListItem>
                                    <asp:ListItem Text="Severe" Value="4"></asp:ListItem>
                                    <asp:ListItem Text="Not Tested" Value="5"></asp:ListItem>
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%#Eval("Severity") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                      <asp:TemplateField HeaderText="Comments" SortExpression="comments"> 
                      <ItemTemplate>      
                           <asp:Label ID="comment_Tb" runat="server"   Width="400px" TextMode="MultiLine"   Text='<%#Eval("comments") %>'></asp:Label>              
                    </ItemTemplate>
                <EditItemTemplate>
                <asp:TextBox ID="comment_Tb" runat="server"   Width="400px" TextMode="MultiLine"   Text='<%#Eval("comments") %>'></asp:TextBox>
                </EditItemTemplate>
               </asp:TemplateField>
                  <%-- <asp:BoundField DataField="comments" HeaderText="comments" 
                    SortExpression="comments" ApplyFormatInEditMode="true" ControlStyle-Width="450px" ControlStyle-Font-Italic="true" ControlStyle-Height="30px" />
            --%>
                     
               <%--
               <asp:BoundField DataField="dateRecorded" HeaderText="dateRecorded" 
                    SortExpression="dateRecorded" />--%>
                               <asp:TemplateField HeaderText="dateRecorded" SortExpression="dateRecorded"> 
                      <ItemTemplate>      
                           <asp:Label ID="date_lb" runat="server"     Text='<%#Eval("dateRecorded") %>'></asp:Label>              
                    </ItemTemplate>
                <EditItemTemplate>
                <asp:TextBox ID="date_Tb" runat="server" class="datepicker"    Text='<%#Eval("dateRecorded") %>'></asp:TextBox>
              
               </EditItemTemplate>
               </asp:TemplateField>
             <%--   <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
        --%>
       <asp:TemplateField HeaderText="select">
       <ItemTemplate>
       <asp:LinkButton ID="Edit_btn" CommandName="Edit" runat="server" Text="Edit"></asp:LinkButton>
        <asp:LinkButton ID="delete_btn" CommandName="Delete" runat="server" Text="DELETE"  OnClientClick="return confirm('Are you sure you want to delete this Contact Record?');"></asp:LinkButton>
        </ItemTemplate>
     <EditItemTemplate>
        <asp:LinkButton ID="Update_btn" CommandName="Update" runat="server" Text="Update" ></asp:LinkButton>
        <asp:LinkButton ID="Cancel_btn" CommandName="Cancel" runat="server" Text="Cancel"></asp:LinkButton>
      </EditItemTemplate>
       </asp:TemplateField>
            </Columns>
            
            <EmptyDataTemplate>
                No Reports Found
            </EmptyDataTemplate>
            
        </asp:GridView>
        
       <%-- <asp:SqlDataSource ID="ModifyVAdatasource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" 
            SelectCommand="SELECT [status_id], [comments], [dateRecorded] FROM [ComponentStatus] WHERE ([component_id] = @component_id)">
            <SelectParameters>
                <asp:QueryStringParameter Name="component_id" QueryStringField="componentID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>--%>
    
        
    
    </div>
     
   <input id=DateTextBox2 runat=server />
    </form>
 
</body>
</html>
